package study01;

/**
* @author GZQ
* @Date 2023/11/5
 */

//打印不同的数据类型
public class DataType {
    public static void main(String[] args) {
        byte b = 100;
        short s = 10000;
        int i = 1000000000;
        long l = 10000000000000000L;
        float f = 3.12345f;
        double d = 3.123456789876543;
        char c = 'A';
        char c1 = '9';
        boolean bool = true;
        boolean bool1 = false;
        String str = "计算机系";
        String str1 = "123456789";
        System.out.println("b=" + b);
        System.out.println("s=" + s);
        System.out.println("i=" + i);
        System.out.println("l=" + l);
        System.out.println("f=" + f);
        System.out.println("d=" + d);
        System.out.println("c=" + c);
        System.out.println("c1=" + c1);
        System.out.println("str=" + str);
        System.out.println("str1=" + str1);
        System.out.println("bool=" + bool);
        System.out.println("bool1=" + bool1);
    }
}
